package edu.guet.Factory.FactoryMethod;

import static edu.guet.Factory.PizzaType.cheese;

/**
 * Created by Caesar on 2017/5/6.
 */
public class Consumer {
    public static void main(String[] args) {
        PizzaStore nyStore = new NYPizzaStore();
        PizzaStore chicagoStore = new ChicagoPizzaStore();

        Pizza pizza = nyStore.orderPizza(cheese);
        System.out.println("Ethan ordered a " + pizza.getName() + "\n");
        pizza = chicagoStore.orderPizza(cheese);
        System.out.println("Joel ordered a " + pizza.getName() + "\n");
    }
}
